package com.ds.lens.data.common.util;

import org.springframework.util.DigestUtils;

/**
 * Description:
 *
 * @author WeiShaoying
 * @date 2019-12-03
 */
public class MD5Util {

    private static final String SLAT = "&%5123***&&%%$$#@";

    /**
     * 生成md5
     *
     * @param str
     * @return
     */
    public static String getMD5(String str) {
        String base = str + "/" + SLAT;
        return DigestUtils.md5DigestAsHex(base.getBytes());
    }
}
